<template lang="">
    <div style="width: 100vw;background-color: #eeeeee;" class="title-box">
         <!-- 返回按钮 -->
        <!-- <div>
            <mt-header fixed title="职称详情">
                <router-link to="/" slot="left">
                <mt-button class="back-butt" icon="back"></mt-button>
                </router-link>
            </mt-header>
        </div> -->
        <div class="tips-box">职称信息</div>
        <div class="title-mint-cell" style="background-color: #ffffff;">
            <div class="input-item flex-row">
              <label><span style="font-weight:400;" class="add-course-icon iconfont iconweibiaoti--"></span>专业类别</label>
              <p>{{titleInfo.majorType || '暂无'}}</p>
            </div>
            <div class="input-item flex-row">
              <label><span class="add-course-icon iconfont icondengdai"></span>取证时间</label>
              <p>{{titleInfo.certificateTime ? titleInfo.certificateTime.split(' ')[0] : '暂无'}}</p>
            </div>
            <div class="input-item flex-row">
              <label><span class="add-course-icon iconfont iconiconfront-"></span>有效日期</label>
              <p>{{titleInfo.validTime ? titleInfo.validTime.split(' ')[0] : '暂无'}}</p>
            </div>
            <div class="input-item flex-row">
              <label><span class="add-course-icon iconfont iconcommpany"></span>发证单位</label>
              <p>{{titleInfo.license || '暂无'}}</p>
            </div>
        </div>
    </div>
</template>
<style lang="less" scoped>
@import url('~@/pagecss/public.less');
.title-mint-cell{
  padding: 0 20/75rem;
}
.tips-box {
  padding: 20/75rem 32/75rem;
  font-size: 30/75rem;
  font-weight: bold;
  color: rgba(71, 135, 228, 1);
}
.add-course-icon {
  position: relative;
  top: 2px;
  margin-right: 10px;
  font-size: 40/75rem;
  font-weight: 700;
  color: #4787e4;
}
.input-item{
  padding: 27/75rem 0;
  justify-content: space-between;
  border-bottom: 0.5px solid rgba(153,153,153,1);
  font-size:26/75rem;
  font-weight:bold;
  color:rgba(34,34,34,1);
  p{
    color:rgba(0,0,0,0.5);
  }
}
</style>
<script>
import { setText } from "../../untils/ddnavigate";
export default {
  name: "titleDetail",
  data() {
    return {
      titleInfo: {}
    };
  },
  mounted() {
    let { queue, sort } = this.$route.query;
    let params = {
      queue,
      sort
    };
    this.$get("getTitleInfo", params).then(res => {
      if (res.success) {
        this.titleInfo = res.data;
      }
    });

    setText("职称详情");
  }
};
</script>